package top.shen33.yang.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * <p>
 * 字段
 * </p>
 *
 * @author oreilly
 * @since 2018-09-17
 */
public class SysField extends Model<SysField> {

private static final long serialVersionUID = 1L;


                @TableId(value = "sid", type = IdType.AUTO)
                
    private Integer sid;
    /**
     * 分类名称
     */

        
    @Excel(name = "分类名称",width = 20,orderNum = "0")
    private String sname;
    /**
     * 排序
     */

        
    @Excel(name = "排序",width = 20,orderNum = "0")
    private String sort;
    /**
     * 填写类型(文本，单选，多选）
     */

        
    @Excel(name = "填写类型",width = 20,orderNum = "0")
    private String inputType;
    /**
     * 变量名
     */

        
    @Excel(name = "变量名",width = 20,orderNum = "0")
    private String skey;


    @TableField(exist = false)
    private List<SysFieldDetail> detailList = Collections.emptyList();


    public List<SysFieldDetail> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<SysFieldDetail> detailList) {
        this.detailList = detailList;
    }

    public Integer getSid() {
            return sid;
    }

    public void setSid(Integer sid) {
            this.sid = sid;
    }

    public String getSname() {
            return sname;
    }

    public void setSname(String sname) {
            this.sname = sname;
    }

    public String getSort() {
            return sort;
    }

    public void setSort(String sort) {
            this.sort = sort;
    }

    public String getInputType() {
            return inputType;
    }

    public void setInputType(String inputType) {
            this.inputType = inputType;
    }

    public String getSkey() {
            return skey;
    }

    public void setSkey(String skey) {
            this.skey = skey;
    }

    @Override
    protected Serializable pkVal() {
            return this.sid;
    }

    @Override
    public String toString() {
        return "SysField{" +
                ", sid=" + sid +
                ", sname=" + sname +
                ", sort=" + sort +
                ", inputType=" + inputType +
                ", skey=" + skey +
        "}";
    }
}
